xen/arm: map_dev_mmio_region: The iomem permission check should be done on MFN
authorJulien Grall <julien.grall@arm.com>
Tue, 14 Jun 2016 11:50:26 +0000 (12:50 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 11 Jul 2016 17:41:48 +0000 (18:41 +0100)
commit652a11ee2fa710c05df09b21cfeab6bad94e06cc
tree109c8f1fb57d8047a797584b470bdb5cdb7f8ede
parent7da483b0236d8974cc97f81780dcf8e559a63175
xen/arm: map_dev_mmio_region: The iomem permission check should be done on MFN

The helper iomem_access_permitted expects MFNs in parameters and not
GNFs. Thankfully only the hardware domain can call this function and
it will always be with GFNS == MFNs for now.

Also, fix the printf to use the MFN range and not the GFN one.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c